package com.zhou.javablog.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhou.javablog.entity.ContentType;
import com.zhou.javablog.mapper.ContentTypeMapper;
import com.zhou.javablog.service.ContentTypeService;

@Service
public class ContentTypeServiceImpl implements ContentTypeService {
	
	@Resource
	private ContentTypeMapper contentTypeMapper;

	@Override
	public int deleteByPrimaryKey(String id) {
		return contentTypeMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ContentType record) {
		return contentTypeMapper.insert(record);
	}

	@Override
	public int insertSelective(ContentType record) {
		return contentTypeMapper.insertSelective(record);
	}

	@Override
	public ContentType selectByPrimaryKey(String id) {
		return contentTypeMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ContentType record) {
		return contentTypeMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ContentType record) {
		return contentTypeMapper.updateByPrimaryKey(record);
	}
	/**
	 * 查询全部对应关系
	 */
	@Override
	public List<ContentType> findAll() {
		return contentTypeMapper.findAll();
	}
	
	
}
